#include "EpilListFieldParser.h"
#include "EpilParserException.h"
#include "EpilExpressionParser.h"


EpilListFieldParser::EpilListFieldParser( EpilTokenStream & tokens )
: EpilSyntaxParserBase( tokens )
{
}


void EpilListFieldParser::Parse()
{
	EpilExpressionParser exprParser( this->GetTokens() );
	exprParser.Parse();
	m_initializer = new EpilFieldItemInitializerCode( exprParser.GetExpression()->GetLocation() );
	m_initializer->SetExpression( exprParser.GetExpression() );
}